home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2162 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  50 lines

  1. Path: news.hv.se!usenet
  2. From: hwefri92@tufvan.hv.se (Henrik Wetterstrom)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: SetIntVector() problem
  5. Date: 27 Jan 1996 23:32:32 GMT
  6. Organization: VΣxj÷ university
  7. Message-ID: <4eecmg$hn3@eken.hv.se>
  8. Reply-To: hwefri92@tufvan.hv.se
  9. NNTP-Posting-Host: hugin.hv.se
  10.  
  11. I have been reading through the RKRM loads of times now
  12. and been staring at these few lines of assembler code
  13. for hors. I think it should do what RKRM tellms me to
  14. do, but still it locks up the whole system during the
  15. SetIntVector() exec.library call. It never reaches
  16. the label 'hang' and the interrupt is never started.
  17. What did I do wrong? I am dying for your help.
  18. I would appreciate a emailed answer (or maybe rather
  19. a Cc: carboncopy of your reply) since I do not trust
  20. me news server to bring me all answers.
  21. Here's the buggy code:
  22.  
  23. run    move.l    4,a6
  24.     move.l    #INTB_VERTB,d0
  25.     lea    int,a1
  26.     jsr    _LVOSetIntVector(a6)
  27.     move.l    d0,oldint
  28.  
  29. hang    bra.b    hang
  30.  
  31. icode    move.w    #INTF_VERTB,intreq(a0)    ; Clear IRQ
  32.     rts
  33.  
  34. int    dc.l    0        ;ln_Succ
  35.     dc.l    0        ;ln_Pred
  36.     dc.b    NT_INTERRUPT    ;ln_Type
  37.     dc.b    0        ;ln_Pri
  38.     dc.l    irqname        ;ln_Name
  39.     dc.l    idata        ;is_Data
  40.     dc.l    icode        ;is_Code
  41.  
  42. idata    dcb.l    10        ;dummy storage
  43. oldint    dc.l    0
  44. irqname    dc.b    "vbint",0
  45.  
  46.  
  47. /Henrik Wtterstrom (hwefri92@tufvan.hv.se)
  48.  
  49.  
  50.